Optimal. Leaf size=36 \[ -\frac{a+b \tanh ^{-1}(c x)}{x}-\frac{1}{2} b c \log \left (1-c^2 x^2\right )+b c \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0262703, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.417, Rules used = {5916, 266, 36, 29, 31} \[ -\frac{a+b \tanh ^{-1}(c x)}{x}-\frac{1}{2} b c \log \left (1-c^2 x^2\right )+b c \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5916
Rule 266
Rule 36
Rule 29
Rule 31
Rubi steps
\begin{align*} \int \frac{a+b \tanh ^{-1}(c x)}{x^2} \, dx &=-\frac{a+b \tanh ^{-1}(c x)}{x}+(b c) \int \frac{1}{x \left (1-c^2 x^2\right )} \, dx\\ &=-\frac{a+b \tanh ^{-1}(c x)}{x}+\frac{1}{2} (b c) \operatorname{Subst}\left (\int \frac{1}{x \left (1-c^2 x\right )} \, dx,x,x^2\right )\\ &=-\frac{a+b \tanh ^{-1}(c x)}{x}+\frac{1}{2} (b c) \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,x^2\right )+\frac{1}{2} \left (b c^3\right ) \operatorname{Subst}\left (\int \frac{1}{1-c^2 x} \, dx,x,x^2\right )\\ &=-\frac{a+b \tanh ^{-1}(c x)}{x}+b c \log (x)-\frac{1}{2} b c \log \left (1-c^2 x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0079244, size = 39, normalized size = 1.08 \[ -\frac{a}{x}-\frac{1}{2} b c \log \left (1-c^2 x^2\right )+b c \log (x)-\frac{b \tanh ^{-1}(c x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 45, normalized size = 1.3 \begin{align*} -{\frac{a}{x}}-{\frac{b{\it Artanh} \left ( cx \right ) }{x}}-{\frac{cb\ln \left ( cx-1 \right ) }{2}}+cb\ln \left ( cx \right ) -{\frac{cb\ln \left ( cx+1 \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.97607, size = 53, normalized size = 1.47 \begin{align*} -\frac{1}{2} \,{\left (c{\left (\log \left (c^{2} x^{2} - 1\right ) - \log \left (x^{2}\right )\right )} + \frac{2 \, \operatorname{artanh}\left (c x\right )}{x}\right )} b - \frac{a}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.87, size = 116, normalized size = 3.22 \begin{align*} -\frac{b c x \log \left (c^{2} x^{2} - 1\right ) - 2 \, b c x \log \left (x\right ) + b \log \left (-\frac{c x + 1}{c x - 1}\right ) + 2 \, a}{2 \, x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.946261, size = 41, normalized size = 1.14 \begin{align*} \begin{cases} - \frac{a}{x} + b c \log{\left (x \right )} - b c \log{\left (x - \frac{1}{c} \right )} - b c \operatorname{atanh}{\left (c x \right )} - \frac{b \operatorname{atanh}{\left (c x \right )}}{x} & \text{for}\: c \neq 0 \\- \frac{a}{x} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15233, size = 63, normalized size = 1.75 \begin{align*} -\frac{1}{2} \, b c \log \left (c^{2} x^{2} - 1\right ) + b c \log \left (x\right ) - \frac{b \log \left (-\frac{c x + 1}{c x - 1}\right )}{2 \, x} - \frac{a}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]